

const state = {
    cards: [true, false, false, false, false],
    // 新歌速递
    newSongExpressData: [],
    newSongExpressPageTotal: 0,
    newSongExpressQuery: {
        day: 7,
        // address: '',
        // name: '',
        pageIndex: 1,
        pageSize: 10
    },
    // 曲库概况
    surveyData: {}

}

const mutations = {
    SET_CARDS: (state, cards) => {
        state.cards = cards
    },
    // 曲库概况
    SET_QUKUSURVEY_DATA: (state, surveyData) => {
        state.surveyData = surveyData
    },
    // 新歌速递
    SET_NEW_SONG_EXPRESS_DATA: (state, newSongExpressData) => {
        state.newSongExpressData = newSongExpressData
    },
    SET_NEW_SONG_EXPRESS_PAGETOTAL: (state, newSongExpressPageTotal) => {
        state.newSongExpressPageTotal = newSongExpressPageTotal
    },
    SET_NEW_SONG_EXPRESS_QUERY: (state, newSongExpressQuery) => {
        state.newSongExpressQuery = newSongExpressQuery
    }

}


// ajax异步请求要么放在组件发 要么 放在actions发
// 这里是放在组件发
const actions = {
    setNewSongExpressData({ commit }, data) {

    }
    // ...
}

export default {
    state,
    mutations,
    actions
}